package com.demo.javase.day81;

/**
 * @Author bug菌
 * @Source 公众号：猿圈奇妙屋
 * @date: 2025-05-09 16:05
 */
public class Counter {
    private int count = 0;

    public synchronized void increment() {
        count++;
    }

    public int getCount() {
        return count;
    }
}
